﻿@model IEnumerable<Accounting.DataAccess.Category>
@{
    ViewBag.Title = "Index";
}
<h2>
    Category List</h2>
<fieldset>
    <legend>Categories</legend>
    <p>
        @Html.ActionLink("Create Category", "Create")
    </p>
    <table>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.ActionLink(item.Name, "Edit", new { id = item.Id })
                </td>
                <td>
                    @Html.ActionLink("Delete", "Delete", new { id = item.Id })
                </td>
            </tr>
        }
    </table>
</fieldset>
